//
//  ProtocolViewController.m
//  JiuLe
//
//  Created by 黄鑫 on 16/10/8.
//  Copyright © 2016年 Fine. All rights reserved.
//

#import "ProtocolViewController.h"

@interface ProtocolViewController ()<UIWebViewDelegate>

@end

@implementation ProtocolViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"用户协议";
    [self showNavgationWithLeftItemWithTitle:@"返回"];
    [_webViewMain loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.jiuletech.com:8088/xieyi.htm"]]];
    _webViewMain.delegate = self;
}
-(void)webViewDidStartLoad:(UIWebView *)webView
{
    [SVProgressHUD showWithStatus:@"加载中" maskType:SVProgressHUDMaskTypeClear];
}
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
    [SVProgressHUD dismiss];
}
-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{
    [SVProgressHUD showErrorWithStatus:@"加载失败请检查网络"];
}

- (void)backTo{
    [super backTo];
}


@end
